package com.itheima.features.stream;

import java.util.stream.Stream;

public class StreamDemo02 {

    public static void main(String[] args) {

        Stream<Integer> integerStream = Stream.of(1, 2, 3, 4, 5);
//        integerStream.takeWhile(s -> s < 3).forEach(s -> System.out.println(s));

        integerStream.dropWhile(s -> s < 3).forEach(s -> System.out.println(s));
    }
}
